﻿<%@ page title="" language="C#" masterpagefile="~/master/amc_app.master" autoeventwireup="true" inherits="pages_amcInvoice, App_Web_pzmkbaed" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script src="../_scripts/app/addcustomer.js" type="text/javascript"></script>
    <link href="../App_Themes/main/addcustomer.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div id="customerAccountPreview" class="addCustomerContentContainer" style="border: 0 none; width:710px;">
        <asp:Repeater ID="rptrPreview" runat="server">
        <ItemTemplate>
            <div style="width:710px; float:left; margin-left:10px;">
            <div style="float:right; margin-right:15px;">
                <table>
                    <tr>
                        <td>
                            Invoice No
                        </td>
                        <td>
                            :
                        </td>
                        <td>
                            <b><asp:Label ID="lblInvoiceNo" runat="server" Text='<%# Eval("amc_invoice") %>'></asp:Label></b>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Date
                        </td>
                        <td>
                            :
                        </td>
                        <td>
                            <b><asp:Label ID="Label1" runat="server" Text='<%# Eval("amc_invoiceDate") %>'></asp:Label></b>
                        </td>
                    </tr>
                </table>
            </div>
            <div style="float:left;width:100%;">
                <table>
                    <tr>
                        <td>
                            Customer ID
                        </td>
                        <td>:</td>
                        <td>
                            <b><asp:Label ID="Label2" runat="server" Text='<%# Eval("cus_id") %>'></asp:Label></b>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Name
                        </td>
                        <td>:</td>
                        <td>
                            <b><asp:Label ID="Label3" runat="server" Text='<%# Eval("customerName") %>'></asp:Label></b>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Address
                        </td>
                        <td>:</td>
                        <td>
                            <asp:Label ID="Label5" runat="server" Text='<%# Eval("cus_Address1") %>'></asp:Label><br />
                            <asp:Label ID="Label6" runat="server" Text='<%# Eval("landmark") %>'></asp:Label><br />
                            <asp:Label ID="Label7" runat="server" Text='<%# Eval("cus_City") %>'></asp:Label>,&nbsp;<asp:Label ID="Label8" runat="server" Text='<%# Eval("cus_State") %>'></asp:Label>&nbsp;-&nbsp;<asp:Label ID="Label9" runat="server" Text='<%# Eval("cus_Postcode") %>'></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Mobile
                        </td>
                        <td>:</td>
                        <td>
                            <b><asp:Label ID="Label10" runat="server" Text='<%# Eval("cus_Mobile") %>'></asp:Label></b>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Email
                        </td>
                        <td>:</td>
                        <td>
                            <asp:Label ID="Label11" runat="server" Text='<%# Eval("cus_Email") %>'></asp:Label>
                        </td>
                    </tr>
                </table>
            </div>
            <div style="float:left; margin-top:20px; width: 700px;">
                <table align="center" style="width:100%;border:1px solid #000000;" border="0" cellpadding="0" cellspacing="0">
                    <thead style="font-size:11px;">
                        <tr style="background-color:Black; color:White; float:left; height:30px;">
                            <td style="width:300px;padding-top: 7px;border-right: 1px solid #000; text-align:center; font-weight:600;">
                                Particular
                            </td>
                            <td style="width:110px;border-right: 1px solid #000;padding-top: 7px; text-align:center; font-weight:600;">
                                Warranty From
                            </td>
                            <td style="width:120px;border-right: 1px solid #000;padding-top: 7px; text-align:center; font-weight:600;">
                                Expiry Date
                            </td>
                            <td style="width:100px;border-right: 1px solid #000;padding-top: 7px; text-align:center; font-weight:600;">
                                AMC Rate
                            </td>
                            <td style="width:100px;border-right: 1px solid #000;padding-top: 7px; text-align:center; font-weight:600;">
                                Amount
                            </td>
                        </tr>
                    </thead>
                    <tbody>
                    <tr style="float:left;">
                        <td style="width:300px; text-align:left;border-right: 1px solid;">
                            <table>
                                <tr>
                                    <td style="width:100%;">
                                        <b>                                        
                                            <asp:Label ID="Label13" runat="server" Text='<%# Eval("sale_product") %>'></asp:Label>&nbsp;
                                        </b>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Bill No: <asp:Label ID="Label15" runat="server" Text='<%# Eval("sale_billNo") %>'></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Bill Date: <asp:Label ID="Label16" runat="server" Text='<%# Eval("sale_billDate") %>'></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Dealer/Outlet: <asp:Label ID="Label17" runat="server" Text='<%# Eval("sale_dealer") %>'></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td style="width:110px;text-align:center;border-right: 1px solid;">
                            <asp:Label ID="Label18" runat="server" Text='<%# Eval("amc_warranty") %>'></asp:Label>
                        </td>
                        <td style="width:120px;text-align:center;border-right: 1px solid;">
                            <asp:Label ID="Label19" runat="server" Text='<%# Eval("amc_expiry") %>'></asp:Label>
                        </td>
                        <td style="width:100px;text-align:center;border-right: 1px solid;">
                            <span class="WebRupee">Rs</span> <asp:Label ID="Label20" runat="server" Text='<%# Eval("amc_rate") %>'></asp:Label>/-
                        </td>
                        <td style="width:100px;text-align:center;border-right: 1px solid;">
                            <span class="WebRupee">Rs</span> <asp:Label ID="Label4" runat="server" Text='<%# Eval("amc_amount") %>'></asp:Label>/-
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div style="float:left; margin-top:5px;">
                <table>
                    <tr>
                        <td>Payment Mode</td>
                        <td>:</td>
                        <td><b><asp:Label ID="Label22" runat="server" Text='<%# Eval("amc_payMode") %>'></asp:Label></b></td>
                    </tr>
                </table>
            </div>
            <div style="width:100%; float:left; margin-top:10px;">
                <input id="isCustomerCopy" type="checkbox" style="float: left;" /> <span style="float: left;padding-top: 1px;"> Would you like to send this receipt to customer?</span>
            </div>
            <div style="float:right;margin-bottom: 65px;margin-right: 20px;margin-top: 30px;">
                <table>
                    <tr>
                        <td>
                            For <b><%= System.Configuration.ConfigurationManager.AppSettings["Client"]%></b>
                        </td>
                        <td>
                            <br />
                            <br />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        </ItemTemplate>
        </asp:Repeater>
        
        <div style="float:right; margin-top:20px;margin-right:10px;margin-bottom:20px;">
                <div id="btnPrint" class="adminGrayButton" onclick="tablePrint();">Print</div>
                <div id="btnFinish" id="saveCustomerData" class="adminColorButton" onclick="fnFinishClick();">Finish</div>
        </div>
    </div>

</asp:Content>

